﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp12
{
    class Part
    {
        public Part() { }
        public Part(string name)
        {
            Name = name;
        }

        public string Name { get; set; }
        
        public void Sp() 
        {
            Console.WriteLine("请选择对方的游戏角色：1、刘备，2、孙权，3、曹操");
            int key = int.Parse(Console.ReadLine());
            switch (key)
            {
                case 1:
                    Name = "刘备";
                    break;
                case 2:
                    Name = "孙权";
                    break;
                case 3:
                    Name = "曹操";
                    break;
                default:
                    Console.WriteLine("输入错误，请重新选择：");
                    break;
            }
        }
    }
}
